﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Zero.UControl.Component
{
    public static class TabControlHelper
    {
        public static readonly DependencyProperty HeaderPlacementProperty =
            DependencyProperty.RegisterAttached(
                "HeaderPlacement",
                typeof(TabHeaderPlacement),
                typeof(TabControlHelper),
                new PropertyMetadata(TabHeaderPlacement.Top));

        public static void SetHeaderPlacement(DependencyObject element, TabHeaderPlacement value)
        {
            element.SetValue(HeaderPlacementProperty, value);
        }

        public static TabHeaderPlacement GetHeaderPlacement(DependencyObject element)
        {
            return (TabHeaderPlacement)element.GetValue(HeaderPlacementProperty);
        }
    }

    public enum TabHeaderPlacement
    {
        Top,
        Bottom,
        Left,
        Right
    }
}
